<?php 


$sfz = "230183197704106737";

$preg = "/^\d{6}[1-2][0-9]{3}[0-1][0-9][0-3][0-9]\w{4}$/";

$www = preg_match($preg, $sfz);

var_dump($www);
 ?>
